package day2;

import java.util.Random;

public class OrderChange {
	public static void main(String[] args){
		Random r=new Random();
		
		int[][] arr={{1,2,3,4,5},
					{6,7,8,9,10},
					{11,12,13,14,15}};
		
		for (int i=0;i<arr.length;i++){
			for (int j=0;j<arr[i].length;j++){
				int temp=0;
				int num1=r.nextInt(arr.length);
				int num2=r.nextInt(arr[num1].length);
				temp=arr[i][j];
				arr[i][j]=arr[num1][num2];
				arr[num1][num2]=temp;
			}
		}
		
		for (int i=0;i<arr.length;i++){
			for (int j=0;j<arr[i].length;j++){
				System.out.print(arr[i][j]+",");
				}
			System.out.println();
		}
	}
}
